<?
/**
 * Validate database type from settings (in debug mode) 
 */
if(Sslib::Debug())
{
	$validDatabases = array('mysql', 'postgre');
	if(!in_array(Sslib::Variable('database.type'), $validDatabases)) die('Invalid database type: '.Sslib::Variable('database.type'));
}


include('db'.Sslib::Variable('database.type').'.class.php');
?>
